<?Php
require_once 'funciones.php';
conexion();
$result=mysql_query("select e.id, e.OBS_EXP from expedientes as e where not e.OBS_EXP = '' ");

while($row=mysql_fetch_array($result)) 
                {
    $i++;
             $aux= explode("- ",$row['OBS_EXP'] ); ; 
               
 foreach ($aux as $v ) {
     
     echo "INSERT INTO `tierras`.`emoviminto` (`observacion`, `expedientes_id`) VALUES ('".$v." ', ".$row['id'].");<br> ";
     
 }
             
                }
                
                echo "<br><br><br><br>".$i;
?>


